// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  // @ts-ignore
  app: {
    pageTransition: { name: 'page', mode: 'out-in' },
    head: {
      charset: 'utf-16',
      viewport: 'width=device-width,initial-scale=1',
      title: '沐雨橙风一个专注于技术分享的博客平台',
      meta: [
        {name:'referrer',content:'no-referrer'},
        {name:'baidu-site-verification',content:'codeva-mWZUUBAHAu'}
      ],
    }
  },
  // @ts-ignore
  css: [
    'element-plus/dist/index.css',
    'assets/font/mycf-iconfont.css',
     'assets/font/iconfont.css'
  ],
  components: true,
  // @ts-ignore
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@use "assets/default.scss" as *;'
        }
      }
    },
  },
  plugins:[
    { src: '~/plugins/VMdPreview', ssr: false },
    { src: '~/plugins/pinia', ssr: false },
    { src: '~/plugins/globalPlugin', ssr: false }
  ],
  // @ts-ignore
  modules: [
    '@element-plus/nuxt',
    '@pinia/nuxt',
    '@pinia-plugin-persistedstate/nuxt',

  ],
  autoImports:[
    'defineStore',
      'api',
      'types',
    ['defineStore', 'definePiniaStore',]
  ],
  experimental: { inlineSSRStyles: false },

})
